import request from '@/utils/request'

// 查询app信息列表
export function listAppinfo(query) {
  return request({
    url: '/service/appinfo/list',
    method: 'get',
    params: query
  })
}

// 查询app信息详细
export function getAppinfo(appinfoId) {
  return request({
    url: '/service/appinfo/' + appinfoId,
    method: 'get'
  })
}

// 新增app信息
export function addAppinfo(data) {
  return request({
    url: '/service/appinfo',
    method: 'post',
    data: data
  })
}

// 修改app信息
export function updateAppinfo(data) {
  return request({
    url: '/service/appinfo',
    method: 'put',
    data: data
  })
}

// 删除app信息
export function delAppinfo(appinfoId) {
  return request({
    url: '/service/appinfo/' + appinfoId,
    method: 'delete'
  })
}
